#ifndef TRDATASTORE_H
#define TRDATASTORE_H

#include "include/TrGlobal.h"
#include "include/TrService.h"
#include "include/TrManager.h"
#include "include/TrDateTime.h"

//==================================================
extern std::shared_ptr<CTrManager> g_pManager;
//==================================================

class CTrDataStore : public CTrReceiver
{
public:
    CTrDataStore();
    virtual ~CTrDataStore();
    virtual void OnReceiveData(Tr_ResponseID rId, void* wParam, void* lParam) override;
    CTrDateTime     m_DateTime;
protected:
    void OnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData);
};

#endif // TRDATASTORE_H
